package br.com.cardoso.videostore.model.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.cardoso.persistence.EntityBean;

@Entity
@Table(name = "actor")
public class ActorEntity extends EntityBean {

	private static final long serialVersionUID = 1L;
	
	private List<FilmEntity> films;

	@Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
	public Long getId() {
		return super.id;
	}

}
